home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Celestin Apprentice 2
/
Apprentice-Release2.iso
/
Tools
/
MPW
/
GCC 1.37.1r15
/
Tests
/
fix-no-rtd.c
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
C/C++ Source or Header
|
1992-12-11
|
328 b
|
17 lines
|
[
TEXT/MPS
]
/* Compile with -fomit-frame-pointer, should generate RTS instead of RTD
to return from foo. */
/* (Declaring foo to be pascal generates a garbage move insn with arg of 12345.) */
struct rect { short a, b, c, d; };
struct rect glob, glob2;
struct rect foo(int x)
{
glob.a = x;
return glob;
}
main() { bar(foo(789)); }